package com.jr.service.impl;

import com.jr.dao.IBookInfoDao;
import com.jr.dao.impl.BookInfoDaoImpl;
import com.jr.pojo.BookInfo;
import com.jr.service.IBookInfoService;
import com.jr.util.PageHelper;

import java.util.ArrayList;

public class BookInfoServiceImpl implements IBookInfoService {

    IBookInfoDao ibd = new BookInfoDaoImpl();

    @Override
    public int queryPageDataCount() {
        return ibd.selectPageDataCount();
    }

    @Override
    public ArrayList<BookInfo> queryIndexData(PageHelper ph) {
        return ibd.selectIndexDate(ph);
    }

}
